home *** CD-ROM | disk | FTP | other *** search
/ SPACE 2 / SPACE - Library 2 - Volume 1.iso / program / 712 / cpp102 / src / ztype.h < prev   
Encoding:
C/C++ Source or Header  |  1993-05-30  |  494 b   |  15 lines

  1. #define Z_ct1 (unsigned char)0x01
  2. #define Z_ct2 (unsigned char)0x02
  3. #define Z_isx (unsigned char)0x03
  4. #define Z_fsx (unsigned char)0x08
  5. #define Z_oct (unsigned char)0x10
  6.  
  7. extern unsigned char Z_type[];
  8. extern void Z_type_init();
  9.  
  10. #define is_ctoks(c)    (Z_type[(unsigned char)c]&Z_ct1)
  11. #define is_ctok(c)    (Z_type[(unsigned char)c]&Z_ct2)
  12. #define is_isuff(c)    (Z_type[(unsigned char)c]&Z_isx)
  13. #define is_fsuff(c)    (Z_type[(unsigned char)c]&Z_fsx)
  14. #define is_octal(c)    (Z_type[(unsigned char)c]&Z_oct)
  15.